package com.free.oracle;

/**
 * Created by admin on 2018/10/25.
 */
public class Test {

    public static void main(String[]args){
       String name="a{className}Dao";
        int start=name.indexOf("{");
        int end=name.indexOf("}");

        System.out.println(start+"   "+end);
        System.out.println(name.substring(start+1,end));

        System.out.println(name.substring(0, start));

        System.out.println(name.substring(end+1));


    }
}
